import 'package:flutter/material.dart';

class OrderDetail extends StatefulWidget {
  const OrderDetail({super.key});

  @override
  State<OrderDetail> createState() => _OrderDetailState();
}

class _OrderDetailState extends State<OrderDetail> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('订单详情'),
      ),
      body: Center(
        child: TextButton(
          child: const Text(
            '点击返回订单列表页',
            style: TextStyle(fontSize: 24.0),
          ),
          onPressed: () {
            // 路由返回上一级页面
            Navigator.pop(context);
          },
        ),
      ),
    );
  }
}
